package com.code.train.service;

import com.code.train.domain.DailyTrain;
import com.code.train.domain.DailyTrainTicket;
import com.code.train.req.DailyTrainTicketQueryReq;
import com.code.train.req.DailyTrainTicketSaveReq;
import com.code.train.resp.DailyTrainTicketQueryResp;
import com.code.train.resp.PageResp;

import java.util.Date;

/**
 * TrainService
 *
 * @param
 * @author 南汉卿
 * @return
 * @date 2025/8/21 23:57
 */
public interface DailyTrainTicketService {
    void save(DailyTrainTicketSaveReq req);

    PageResp<DailyTrainTicketQueryResp> queryList(DailyTrainTicketQueryReq req);

    void delete(Long id);

    void genDaily(DailyTrain dailyTrain,Date date, String trainCode);

    DailyTrainTicket selectByUnique(Date date, String trainCode, String start, String end);
}